package top.ljl.crawler.controller;

import top.ljl.crawler.Entity.Data;
import top.ljl.crawler.service.impl.CrawlerServiceImpl;

import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/11/3 20:42
 * @Version 1.0
 **/
public class CrawlerController{
    public static void main(String[] args) throws Exception {
        CrawlerServiceImpl c = new CrawlerServiceImpl();
        int pageNums = 3;
        for (int i = 1 ; i <= pageNums;i++) {
            System.out.println("第"+i+"页：");
            c.getDataList(i);
        }
    }
}